<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="{{ config.SiteDescription }} ">
    <meta name="keywords" content="{{ config.SiteKeywords }} ">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>{{ config.SiteName }}  | {{ config.SiteKeywords }}  | {{ config.SiteDescription }} </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="{{ config.Avatar }} ">
    <meta name="mobile-web-app-capable" content="yes">
    <link rel="icon" sizes="192x192" href="{{ config.Avatar }} ">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="apple-touch-icon-precomposed" href="assets/frontend/assets/i/app-icon72x72@2x.png">
    <meta name="msapplication-TileImage" content="assets/frontend/assets/i/app-icon72x72@2x.png">
    <meta name="msapplication-TileColor" content="#0e90d2">
    <link rel="stylesheet" href="assets/frontend/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="assets/frontend/assets/css/app.css">
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/github.min.css">
    <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script>
    <!--百度站长统计-->
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?eabbd1fbfd169498201878c8f3775225";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

    <style>
        *{
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            font-family: "Segoe UI Light", "Segoe UI", "Segoe UI WP",'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace, "Microsoft Jhenghei", 微软雅黑, sans-serif, Times;
        }
    </style>
</head>

<body id="blog">

<header class="am-g am-g-fixed blog-fixed blog-text-center blog-header" style="display: none">
    <div class="am-u-sm-8 am-u-sm-centered">
        <img width="200" src="http://s.amazeui.org/media/i/brand/amazeui-b.png" alt="Amaze UI Logo"/>
        <h2 class="am-hide-sm-only">中国首个开源 HTML5 跨屏前端框架</h2>
    </div>
</header>
<hr>
<nav class="am-g am-g-fixed blog-fixed blog-nav">
    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only blog-button"
            data-am-collapse="{target: '#blog-collapse'}"><span class="am-sr-only">导航切换</span> <span
            class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="blog-collapse">
        {{ site_nav }} 
        <form class="am-topbar-form am-topbar-right am-form-inline" role="search" action="/search">
            <div class="am-form-group">
                <input type="text" name="keyword" class="am-form-field am-input-sm" placeholder="搜索标题"
                       required="required">
            </div>
        </form>
    </div>
</nav>
<hr>
<!-- content srart -->
<div class="am-g am-g-fixed blog-fixed">
    <div class="am-u-md-8 am-u-sm-12">
        {% if(total) %}
        {% for article in articles %}
            {% if(article.Imgurl == '') %}
            <article class="am-g blog-entry-article">
                <div class="am-u-lg-6 am-u-md-12 am-u-sm-12 blog-entry-text" style="width: 100%">
                    <span><a href="{{ url('/index/list',['id':article.CatId]) }}" class="blog-color">{{ article.CatName }}  &nbsp;</a></span>
                    <span> {{ config.SiteAuthor }}  &nbsp;</span>
                    <span>{{ article.CreateAt  }}</span>
                    <h1><a href="{{ url('/index/article',['id':article.Id]) }}">{{ article.Title }}</a></h1>
                    <p>{{ article.Description }}</p>
                    <p><a href="{{ url('/index/article',['id':article.Id]) }}" class="blog-continue">阅读</a></p>
                </div>
            </article>
            {% else %}
            <article class="am-g blog-entry-article">
                <div class="am-u-lg-6 am-u-md-12 am-u-sm-12 blog-entry-img">
                    <img src="{{ article.Imgurl }}" alt="" class="am-u-sm-12">
                </div>
                <div class="am-u-lg-6 am-u-md-12 am-u-sm-12 blog-entry-text">
                    <span><a href="{{ url('/index/list',['id':article.CatId]) }}" class="blog-color">{{ article.CatName }} &nbsp;</a></span>
                    <span>{{ config.SiteAuthor }}  &nbsp;</span>
                    <span>{{ article.CreateAt  }}</span>
                    <h1><a href="{{ url('/index/article',['id':article.Id]) }}">{{ article.Title }}</a></h1>
                    <p>{{ article.Description }}</p>
                    <p><a href="{{ url('/index/article',['id':article.Id]) }}" class="blog-continue">阅读</a></p>
                </div>
            </article>
            {% endif %}
        {% endfor %}
        {% else %}
        <div class="am-u-md-12 am-u-sm-12 blog-sidebar">
            <div class="blog-clear-margin blog-sidebar-widget blog-bor am-g ">
                <h2 class="blog-title"><span>没有更多的文章</span></h2>
                <div class="am-u-sm-12 blog-clear-padding">
                    {{ config.SiteSign }}
                </div>
            </div>
        </div>
        {% endif %}
    </div>

    <div class="am-u-md-4 am-u-sm-12 blog-sidebar">
        <div class="blog-sidebar-widget blog-bor">
            <h2 class="blog-text-center blog-title"><span>About ME</span></h2>
            <img src="{{ config.Avatar }} " alt="about me" class="blog-entry-img">
            <p>{{ config.SiteAuthor }} </p>
            <p>
                {{ config.SiteSign }}
            </p>
        </div>
        <div class="blog-clear-margin blog-sidebar-widget blog-bor am-g ">
            <h2 class="blog-title"><span>TAG cloud</span></h2>
            <div class="am-u-sm-12 blog-clear-padding">
                {% for _tag in tags %}
                    <a href="" class="blog-tag">{{ _tag.TagName }} </a>
                {% endfor %}
            </div>
        </div>
    </div>
</div>
<!-- content end -->

<style>
    .links li {display: block;float: left;margin: 5px;}
</style>
<footer class="blog-footer">
    <div class="am-g am-g-fixed blog-fixed am-u-sm-centered blog-footer-padding" style="padding: 1rem;">
        <div class="am-u-sm-12 am-u-md-12- am-u-lg-12" style="padding: 1rem">
            <ul class="links">
                {% for link in links %}
                <li><a href="{{ link.LinkUrl }} " target="_blank">{{ link.LinkName }} </a></li>
                {% endfor %}
            </ul>
        </div>
    </div>
    <div class="blog-text-center">{{ config.SiteIcp }}  © 2017 AllMobilize, Inc. Licensed under MIT license.</div>
</footer>
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="assets/frontend/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/frontend/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script src="assets/frontend/assets/js/amazeui.min.js"></script>
<script>
    $(document).ready(function () {
        $('pre code').each(function (i, block) {
            hljs.highlightBlock(block);
        });
    });
</script>
</body>
</html>
